package com.iotp.service.user_statistics;

import com.iotp.entity.user_statistics.UserStatistics;

public interface UserStatisticsService {

    int add(UserStatistics userStatistics);

    /**
     * 总使用人数
     * @return
     */
    Long getAllUserNum();

    /**
     * 半小时内在线人数
     * @return
     */
    Long getCurrentUserNum(Long startTime, Long endTime);

    /**
     * 一周活跃人数
     * @return
     */
    Long getWeekUserNum(Long startTime, Long endTime);

    /**
     * 当月活跃人数
     * @return
     */
    Long getMonthUserNum(Long startTime, Long endTime);
}
